package A1_4.pays;

public class Payment {//支付方式（Payment），具有金额（amount）属性
    private double amount;

    public Payment() {
    }

    public Payment(double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "支付方式{" +
                "具有金额=" + amount +
                '}';
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }
}
